package com.dst.smart.receiver;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;

public class UpdateMsgReceiver extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		try {
			String result = intent.getExtras().getString("cmd_result");
			if (result.trim().equals("Success")) {
				Thread.sleep(3000);
				Intent intent1 = new Intent(
						"com.iflytek.aiuilauncher.action.CMD_LINE");
				intent1.putExtra("cmd", "reboot");
				context.sendBroadcast(intent1);
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
